Skip to content

[6.40] [tree] Fix long64 tree index losing precision on 64-bit long double platforms and enable forgotten test#22607

Merged
guitargeek merged 2 commits into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_19741
Jun 15, 2026
Merged

[6.40] [tree] Fix long64 tree index losing precision on 64-bit long double platforms and enable forgotten test#22607
guitargeek merged 2 commits into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_19741

Conversation

@root-project-bot

Copy link
Copy Markdown

Backport of #19741, requested by @guitargeek. For your information @ferdymercury

ferdymercury and others added 2 commits June 15, 2026 05:49
(cherry picked from commit 4a5eca1)
…latforms

The conditional `long64major ? GetLong64() : GetAndRangeCheck()` mixes
Long64_t and LongDouble_t, so the exact value was promoted through long
double regardless of branch. This rounded large values where long double
is 64-bit (macOS arm64, Windows), making
roottest-root-tree-index-indexl64 fail there while passing on Linux. Fix
this with an explicit `static_cast<Long64_t>(ret)`.

🤖 Done with the help of [Claude Code](https://claude.com/claude-code) (Claude Opus 4.8)

(cherry picked from commit d9fae25)
@github-actions

Copy link
Copy Markdown

Test Results

    21 files      21 suites   3d 6h 18m 21s ⏱️
 3 858 tests  3 858 ✅ 0 💤 0 ❌
72 701 runs  72 701 ✅ 0 💤 0 ❌

Results for commit b7703a7.

@guitargeek guitargeek merged commit ab729c1 into root-project:v6-40-00-patches Jun 15, 2026
33 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants